<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Application_Controllers_DetallePersonaController {

    public function __construct($action) {
        switch ($action) {
//            case "ListAction":
//                $this->_list();
//
//                break;
            case "RegisterAction":
                $this->_registerPerson();
                break;
            case "ViewRegisterAction":
                $this->_registerViewRegister();
                break;
        }
    }

    private function _registerPerson() {
        $model = new Application_Models_DetallePersonaModel();
        $model->registerPerson();
        $View = new Application_Views_IndexView();
        $View->showLogin();
    }

    private function _registerViewRegister() {
        $model = new Application_Views_DetallePersonaView()
        ;
        $model->_showRegister();
    }

}

?>
